package com.group1.bookmanagement.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.group1.bookmanagement.dao.BaseDao;
import com.group1.bookmanagement.domain.Label;
import com.group1.bookmanagement.service.LabelService;

@Service("labelService")
public class LabelServiceImpl implements LabelService {
	
	@Resource(name = "baseDao")
	private BaseDao<Label> labelDao;
	
	@Override
	public Label get(Long id) {
		return labelDao.get(Label.class, id);
	}

	@Override
	public List<Label> listLabel() {
		return labelDao.findAll("from Label");
	}

}
